/*
 * Copyright (c) 2020-2021. the original authors and DEPSEA.ORG
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.depsea.oss.client;

import jakarta.servlet.http.HttpServletResponse;

/**
 * 文件下载
 *
 * @author Wang Chengwei
 * @since 1.0.0 2021/11/30 11:21
 */
public interface CustomerBucketOssDownloadTemplate {

    /**
     * 下载，默认下载名称为原始文件名
     *
     * @param bucketName Bucket Name
     * @param fullPath 完整的文件路径
     * @param response HttpServletResponse
     */
    void download(String bucketName, String fullPath, HttpServletResponse response);

    /**
     * 下载，默认下载名称为原始文件名
     *
     * @param bucketName Bucket Name
     * @param fullPath 完整的文件路径
     * @param filename 下载文件名
     * @param response HttpServletResponse
     */
    void download(String bucketName, String fullPath, String filename, HttpServletResponse response);

    /**
     * 预览
     *
     * @param bucketName Bucket Name
     * @param fullPath 完整的文件路径
     * @param response HttpServletResponse
     */
    void preview(String bucketName, String fullPath, HttpServletResponse response);
}
